<?php
/**
 * 订单相关接口请求参数验证器
 * Created by PhpStorm.
 * User: LRChang
 * Date: 2018/07/09
 * Time: 15:33
 * Mail: hjklrchang@qq.com
 */

namespace app\adminapi\validate;

use app\base\validate\BaseValidate;

class OrderValidate extends BaseValidate
{
    protected $rule = [
        'order_id' => 'require|isPositiveInt',
        'exception_remark' => 'max:255',
    ];

    // 默认值
    protected $default = [

    ];

    protected $message = [
        'order_id.isPositiveInt' => '订单id必须为正整数',
    ];

    protected $scene = [
        'exception_remark' => [
            'order_id',
            'exception_remark',
        ],
    ];
}